<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <sj:head jqueryui="true"/>
     <script type="text/javascript">
      function okButton(){
       alert('OK Button pressed!');
     };
     function cancelButton(){
      alert('Cancel Button pressed!');
      $('#mybuttondialog').dialog('close');
     };
   </script>
  </head>
  <body>
    <sj:dialog
        id="mybuttondialog"
        buttons="{
                'OK':function() { okButton(); },
                'Cancel':function() { cancelButton(); }
                }"
        autoOpen="true"
        modal="true"
        title="Dialog with Buttons"
    >
     Please check if the car is ready for assigning transporter.
    </sj:dialog>
  </body>
</html>